home *** CD-ROM | disk | FTP | other *** search
/ CICA 1993 April / CICA MS Windows - April 1993.iso / unzipped / programr / vbasic / 256vbcol / readme.txt < prev   
Text File  |  1992-03-16  |  2KB  |  40 lines

  1. 256 Colors in a Visual Basic Picture Box Control !!!!
  2. =====================================================
  3.  
  4. The enclosed files (see below) show how to display a 256 bitmap in a Visual
  5. Basic picture box control.  The technique uses a DLL to read the bitmap
  6. file into memory and create a palette which can then be selected into
  7. the picture box's device context and subsequently realized (I can't take
  8. any credit for the code within the DLL ... it was lifted with very
  9. little modification from a couple of SAMPLE programs supplied with the
  10. Microsoft Windows SDK.)
  11.  
  12. Hopefully, the code will be easy to read (famous last words), but if you
  13. have difficulty following what's happening, feel free to holler a question
  14. and I'll do my best to help out.
  15.  
  16. The demo (256PICBX) does have one "hidden" item which you may have trouble
  17. finding.  The PicPreviewSource picture box can be found by sizing the
  18. form downwards while in design mode.
  19.  
  20.                                                    Enjoy,
  21.                                                    rpb 70742,3332
  22.  
  23. Files:
  24.  
  25.    256picbx.bas ─┐
  26.    256picbx.frm  │  Files for the demo VB application
  27.    256picbx.mak ─┘
  28.    256picbx.exe     Precompiled version of demo application
  29.  
  30.    makefile    ──┐
  31.    errors.c      │  Source code for the bitmap utility library
  32.    errors.h      │  the makefile is for MSC 6.0, but can be used with QCWin
  33.    dib.c         │  by changing the CC = cl line to read CC = cl -qc and
  34.    dib.h         │  changing the line CFLAGS_R_WDLL = /Ox /DNDEBUG to
  35.    dibutil.c     │  CFLAGS_R_WDLL = /O /DNDEBUG
  36.    dibutil.def   │
  37.    dibutil.h   ──┘
  38.    dibutil.dll      Precompiled bitmap utility library
  39.  
  40.